package com.jsmy.softapp.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.jsmy.softapp.R;
import com.jsmy.softapp.bean.YWgtjhBean;

/**
 * Created with Android Studio.
 * User: wei_cd.
 * Date: 2018/4/23.
 * Time: 17:52.
 * To change for file | settings | file and code templates.
 */

public class DailyFragmentAdapter extends BaseQuickAdapter<YWgtjhBean.DataBean.ListBean,BaseViewHolder> {

    public DailyFragmentAdapter() {
        super(R.layout.fragment_daily_item);
    }

    @Override
    protected void convert(BaseViewHolder helper, YWgtjhBean.DataBean.ListBean item) {
        helper.setText(R.id.tv_time,item.getSj())
                .setText(R.id.tv_content,item.getNr())
                .addOnClickListener(R.id.btn_delete);
    }
}
